package edu.ctbu.ctbujsj.service;


import edu.ctbu.ctbujsj.dao.StudentRepository;
import edu.ctbu.ctbujsj.domain.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentService {

    @Autowired
    private StudentRepository studentRepository;


    public List<Student> findAll(){

        List<Student> myList=studentRepository.findAll();
        return myList;
    }


}
